package com.woniu.cms.goods.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 材料类型表。id设计id共计六位数字，前两位为1级类型id，中间两位为2级类型id，最后两位为三级类型id，parentid为上级类型的id
 * </p>
 *
 * @author romantic sheep
 * @since 2022-09-17
 */
@Getter
@Setter
  @TableName("cms_goods_type")
@ApiModel(value = "GoodsType对象", description = "材料类型表。id设计id共计六位数字，前两位为1级类型id，中间两位为2级类型id，最后两位为三级类型id，parentid为上级类型的id")
public class GoodsType implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("父级类型的id，父子关联")
      private Integer parentid;

      @ApiModelProperty("类型等级（1级、2级、3级）")
      private Integer typeLevel;

      @ApiModelProperty("类型名称")
      private String typeName;


}
